package com.fishery.processing.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fishery.processing.entity.Job;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fishery.processing.entity.vo.JobVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author run
 * @since 2021-03-12
 */
public interface JobService extends IService<Job> {

    public IPage<JobVo> getJobsOfFactory(String factoryId, Integer page, Integer size);

    public boolean createJob(Job job);

    public boolean updateJob(Job job);

    public boolean deleteJob(String jobId);

    public boolean updateStatus(String jobId);

    public JobVo getJobById(String jobId);

}
